Prevents media removal from the currently opened drive.
Return Type
A Boolean value.
Syntax
object.LockDrive
The LockDrive method syntax has these parts: